(function(){
	'use strict';
	angular.module('controllers.workOrderData.problemMgmt',[])
	.controller('ProblemMgmtController',ProblemMgmtController);
	function ProblemMgmtController($scope,CoreService){
		var spans = ['/query','/trendQuery'];
    $scope.selectedIndex = CoreService.navgit(spans);
    $scope.$on('$stateChangeSuccess', function(evt, state) {
      $scope.selectedIndex = spans.indexOf(state.url);
    });
	}
})();